﻿using DLL.NET.DB.MS.Drugs.CRUD.Repository;
using DLL.NET50.DB.CRUD;
using System;
using System.Collections.Generic;
using System.Text;
using DLL.NET50.DB.MS.Drugs.ORM.UOW;

namespace DLL.NET.DB.MS.Drugs.CRUD.Service
{
    //MS数据库
    public interface IMSDrugsService : IBaseDrugsService
    {
    }

    public class CMSDrugsService : CBaseDrugsService, IMSDrugsService
    {
        public CMSDrugsService(IMSDrugsRepository repository) : base(repository)
        {
            this._drugsRepository = repository;
        }
    }

    //local backup drugs
    public interface ILocalDrugsService : IBaseDrugsService
    {
    }

    public class CLocalDrugsService : CBaseDrugsService, ILocalDrugsService
    {
        public CLocalDrugsService(ILocalDrugsRepository repository) : base(repository)
        {
            this._drugsRepository = repository;
        }
    }

    //remote backup drugs
    public interface IServerDrugsService : IBaseDrugsService
    {
    }

    //public class CServerDrugsService : CBaseDrugsService, IServerDrugsService
    //{
    //    public CServerDrugsService(IServerDrugsRepository repository) : base(repository)
    //    {
    //        this._drugsRepository = repository;
    //    }

    //}

    ////copyed drugs
    //public interface ICopyDrugsService : IBaseDrugsService
    //{
    //}
    //public class CCopyDrugsService : CBaseDrugsService, ICopyDrugsService
    //{
    //    public CCopyDrugsService(ICopyDrugsRepository repository) : base(repository)
    //    {
    //        this._drugsRepository = repository;
    //    }

    //}
}